package com.example.football.controller;


import com.example.football.pojo.Peoplelikestar;
import com.example.football.pojo.Result;
import com.example.football.pojo.Yuyue;
import com.example.football.service.PeopleServiceImpl;
import com.example.football.service.YuyueServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class APPYuyueController {
    @Autowired
    private YuyueServiceImpl userService;

    @PostMapping("/APPinsertyuyue")
    public Result insertyuyue(@RequestBody Yuyue id){
        return userService.insertYuyue(id);
    }

    @PostMapping("/APPfindyuyuebysite")
    public Result findyuyuebysite(@RequestBody Yuyue id){
        return userService.findYuyueBySite(id);
    }

    @PostMapping("/APPupdateyuyuebyteam1")
    public Result updateyuyuebyteam1(@RequestBody Yuyue id){
        return userService.updateYuyueByTeam1(id);
    }

    @PostMapping("/APPupdateyuyuebyteam2")
    public Result updateyuyuebyteam2(@RequestBody Yuyue id){
        return userService.updateYuyueByTeam2(id);
    }

    @PostMapping("/APPfindyuyuebyteam")
    public Result findyuyuebyteam(@RequestBody Yuyue id){
        return userService.findYuyueByTeam(id);
    }
}
